package com.bins.dentist.clinic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author bins
 * @since 2023-02-20 20:53:31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_menu")
@ApiModel(value = "MenuEntity对象", description = "")
public class MenuEntity {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("菜单名称")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty("菜单级别")
    @TableField("menu_level")
    private Integer menuLevel;

    @ApiModelProperty("菜单命令")
    @TableField("command")
    private String command;

    @ApiModelProperty("菜单链接")
    @TableField("url")
    private String url;

    @ApiModelProperty("父级 ID, 最顶级为 0")
    @TableField("pid")
    private Long pid;

    @ApiModelProperty("是否新页面打开")
    @TableField("is_blank")
    private Integer isBlank;

    @ApiModelProperty("排序, 序号越大, 越靠前")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("是否删除")
    @TableField("is_del")
    private Integer isDel;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private Long createBy;

    @ApiModelProperty("修改人")
    @TableField("update_by")
    private Long updateBy;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
